package grape.composite.rest.activity.mapper;

import grape.composite.rest.activity.form.*;
import grape.composite.service.activity.po.Activity;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.activity.vo.ActivityVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 活动表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-08-25
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ActivityWebMapper extends WebMapper<ActivityVo, Activity> {

    Activity formToPo(ActivityCreateForm f);
    Activity formToPo(ActivityUpdateForm f);
    Activity formToPo(ActivityListPageForm f);
    Activity formToPo(ActivityListForm f);
    Activity formToPo(ActivityUpdateIsPublishedForm f);
}
